package com.dgt.trade.entitys;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 充值记录实体
 * 充值记录ID	id
 * 充值用户ID	userId
 * 数据类型	dataType
 * 余额		balance
 * 充值金额	money
 * 数据状态	dataStatus
 * 添加时间	addTime
 * 数据描述	dataDesc
 * @date 2018-05-17
 */
public class UserBalance implements Serializable {

    private static final long serialVersionUID = 1L;

    //充值记录ID
    private long id;
    //充值用户ID
    private long user_id;
    /**
     *数据类型
     * 1:充值
     * 2:提现
     * 3:开仓
     * 4:结算
     */
    private long  data_type;
    //余额
    private Float balance;
    //充值金额
    private Float money;
    /**
     * 数据状态
     * 2：正常,256：失败
     */
    private int data_status;
    //添加时间
    private Date add_time;
    //数据描述
    private String data_desc;

    //getter setter
    public String getData_desc() {
        return data_desc;
    }

    public void setData_desc(String data_desc) {
        this.data_desc = data_desc;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public long getData_type() {
        return data_type;
    }

    public void setData_type(long data_type) {
        this.data_type = data_type;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public int getData_status() {
        return data_status;
    }

    public void setData_status(int data_status) {
        this.data_status = data_status;
    }

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    //带参数的构造方法
    public UserBalance( long user_id, long data_type, Float balance, Float money, int data_status, Date add_time, String data_desc) {
        this.user_id = user_id;
        this.data_type = data_type;
        this.balance = balance;
        this.money = money;
        this.data_status = data_status;
        this.add_time = add_time;
        this.data_desc = data_desc;
    }

    //无参数的构造方法
    public UserBalance() {

    }

    //重写字符串方法 方便输出
    @Override
    public String toString() {
        return "UserBalance{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", data_type=" + data_type +
                ", balance=" + balance +
                ", money=" + money +
                ", data_status=" + data_status +
                ", add_time=" + add_time +
                ", data_desc='" + data_desc + '\'' +
                '}';
    }
}
